<?php
/**
 * Created by PhpStorm.
 * User: wangmx
 * Date: 2016/12/5
 * Time: 15:10
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class jpushRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>[ 'web','auth','permissions.check'],
            'prefix' =>'backstage/jpush/'], function ($router) {
            $router->get('push-message',['uses' =>'Backstage\JpushController@messageIndex'])->name('get.jpush.push-message');
            $router->post('push-message',['uses' =>'Backstage\JpushController@pushSystemMessage'])->name('post.jpush.push-message.push-message');
        });
    }
}